package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 公告表
 * </p>
 *
 * @author
 *
 */
@Getter
@Setter
@ApiModel(value = "Announcements对象", description = "公告表")
public class Announcements implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("公告ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("公告标题")
    private String title;

    @ApiModelProperty("公告内容")
    private String content;

    @ApiModelProperty("公告摘要")
    private String summary;

    @ApiModelProperty("公告类型：system系统公告，activity活动公告，maintenance维护通知")
    private String type;

    @ApiModelProperty("状态：1发布，0草稿")
    private Integer status;

    @ApiModelProperty("浏览量")
    private Integer views;

    @ApiModelProperty("发布人ID")
    private Integer publisherId;

    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;


}
